package demo2.demo2.mapper;

import demo2.demo2.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TeacherMapper {
    List<Teacher> getTeachers();

    Teacher getTeacher(Integer id);

//    新增一个老师
    int addTeacher(Teacher teacher);
//    更新一个老师
    int updateTeacher(Teacher teacher);
//    删除一个老师
    int deleteTeacher(Integer id);

}
